home *** CD-ROM | disk | FTP | other *** search
/ 220 Jogos / 220 jogos.iso / classicos / resta11 / STreeField.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-12-24  |  975 b   |  39 lines

  1. // STreeField.h: Schnittstelle fⁿr die Klasse STreeField.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_STREEFIELD_H__1DAB0564_2654_4BD6_B83E_75A5891E2E9F__INCLUDED_)
  6. #define AFX_STREEFIELD_H__1DAB0564_2654_4BD6_B83E_75A5891E2E9F__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include "STree.h"
  13. #include "SSoundSystem.h"
  14.  
  15. #define NUM_TREES 32
  16.  
  17. class STreeField  
  18. {
  19. public:
  20.     int treesLeft();
  21.     bool isDone();
  22.     void release(float x, float y);
  23.     void move(float x, float y);
  24.     bool click(float x, float y);
  25.     void update(float frametime);
  26.     void create(STexture* baum, STexture* stamm,SSoundSystem* sound);
  27.     STreeField();
  28.     virtual ~STreeField();
  29. protected:
  30.     STree trees[NUM_TREES];
  31.     int dragging;
  32.     bool matrix[MATRIX_SIZE][MATRIX_SIZE];
  33.     SSoundSystem* soundSystem;
  34.     int lastPos[2];
  35.  
  36. };
  37.  
  38. #endif // !defined(AFX_STREEFIELD_H__1DAB0564_2654_4BD6_B83E_75A5891E2E9F__INCLUDED_)
  39.